package com.cyz.web.app.concurrent;

public class ThreadGroupClient {

    public static void main(String[] args) {
        ThreadGroup group = new ThreadGroup("threadGroup");


        Thread t1 = new Thread(group, ()->{
            System.out.printf("t1当前的线程id是%s \n", Thread.currentThread().getId());
        }, "t1");

        Thread t2 = new Thread(group, ()->{
            System.out.printf("t1当前的线程id是%s \n", Thread.currentThread().getId());
        }, "t2");






    }

}
